using UnityEngine;

public class ColideResetJump : MonoBehaviour
{
	public bool mutation;

	public GameObject Stickman;

	private void Start()
	{
	}

	public void OnTriggerEnter2D(Collider2D coll)
	{
		if ((coll.gameObject.layer == 9 || coll.gameObject.layer == 11) && mutation)
		{
			mutation = false;
			Stickman = coll.gameObject;
			Bigger();
		}
	}

	public void Bigger()
	{
		base.gameObject.SetActive(false);
		float num = 0f;
		num = 1.3f;
		Rigidbody2D[] componentsInChildren = Stickman.transform.parent.GetComponentsInChildren<Rigidbody2D>();
		for (int i = 0; i < componentsInChildren.Length; i++)
		{
			if (!Stickman.CompareTag("tete"))
			{
				componentsInChildren[i].gameObject.transform.localScale = new Vector3(componentsInChildren[i].gameObject.transform.localScale.x * num, componentsInChildren[i].gameObject.transform.localScale.y * num, componentsInChildren[i].gameObject.transform.localScale.z);
			}
			else
			{
				componentsInChildren[i].gameObject.transform.localScale = new Vector3(componentsInChildren[i].gameObject.transform.localScale.x * num, componentsInChildren[i].gameObject.transform.localScale.y * num, componentsInChildren[i].gameObject.transform.localScale.z);
			}
		}
	}
}
